/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.depaul.se.courseregistration.mdb.p2p;

import edu.depaul.se.courseregistration.jpa.schedule.EnrolledClass;
import java.util.logging.Level;

/**
 *
 * @author lmarco
 */

public class ProcessRequest {
    
   public static final String ENROLL = "ENROLL";
   public static final String DROP = "DROP";


    public void processEnrollRequest(EnrolledClass enroll, int result, String request ) {
          //Send a message here.
        Sender tx = new Sender();
        try {
            tx.sendMessage(request + " :\n " + "  " +enroll.toString(), result);
        } catch (Exception ex) {
            java.util.logging.Logger.getLogger(ProcessRequest.class.getName()).log(Level.SEVERE, null, ex);
        }
       
    }
    
}
